package org.tao.lightningmq.client.producer;

/**
 * @Author lht
 * @date 2025/1/19 - 17:03
 * @description: 发送结果
 */
public class SendResult {

    private SendStatus sendStatus;

    public SendStatus getSendStatus() {
        return sendStatus;
    }

    public static SendResult success() {
        SendResult sendResult = new SendResult();
        sendResult.sendStatus = SendStatus.SUCCESS;
        return sendResult;
    }

    public static SendResult fail() {
        SendResult sendResult = new SendResult();
        sendResult.sendStatus = SendStatus.FAIL;
        return sendResult;
    }

    public enum SendStatus {
        SUCCESS,
        FAIL,
        ;
    }
}
